import request from '@/utils/request'

// 查询课程学习列表
export function listcourseStudy(query) {
  return request({
    url: '/system/courseStudy/list',
    method: 'get',
    params: query
  })
}

// 查询课程学习详细
export function getcourseStudy(id) {
  return request({
    url: '/system/courseStudy/' + id,
    method: 'get'
  })
}

// 新增课程学习
export function addcourseStudy(data) {
  return request({
    url: '/system/courseStudy',
    method: 'post',
    data: data
  })
}

// 修改课程学习
export function updatecourseStudy(data) {
  return request({
    url: '/system/courseStudy',
    method: 'put',
    data: data
  })
}

// 删除课程学习
export function delcourseStudy(id) {
  return request({
    url: '/system/courseStudy/' + id,
    method: 'delete'
  })
}

// 导出课程学习
export function exportcourseStudy(query) {
  return request({
    url: '/system/courseStudy/export',
    method: 'get',
    params: query
  })
}